编译错误
After ‘make all’, you may face two errors. Here are the solutions:
Error One:
./include/caffe/common.hpp:5:27: fatal error: gflags/gflags.h: No such file or directory
compilation terminated.
Solutions:
Error Two:
./include/caffe/data_layers.hpp:11:18: fatal error: lmdb.h: No such file or directory
Solution:
Python 接口调用错误
After the installation of caffe, you could build the python interfance for it:
If when you run ‘make pycaffe’, you see this error
Error One:
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe2 in position 54: ordinal not in range(128)
you could fix it by running:
That should be the end of the installation. You can test that it runs with:
The expected output is:
Error Two:
Pycaffe not working: No module named google.protobuf.internal
安装配置nVidia cuDNN 加速Caffe模型运算
a. 安装cuDNN
该改版本caffe-master默认支持cudnn-6.5-linux-x64-v2,使用cudnn-6.5-linux-R1会报错,安装前请去先官网下载最新的cuDNN
b. 链接cuDNN的库文件
opencv
Unsupported gpu architecture ‘compute_11’
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler ..
cmake需要指定GPU架构3 :-D CUDA_GENERATION=Kepler,否则报错:Unsupported gpu architecture ‘compute_11’
生成lib/libopencv_highgui.so.2.4.9找不到png_set_longjmp_fn,可以这样解决:
google之后发现这个函数定义在libpng中
绘制模型的结构
To install this package with conda run:
caffe python Exception: “dot” not found in path
Installed GraphViz on Ubuntu:
Installed GraphViz for Python:
#have a look at the model
本作品采用知识共享署名 2.5 中国大陆许可协议进行许可,欢迎转载,但转载请注明来自 Sunshine 并保持转载后文章内容的完整。本人保留所有版权相关权利。
本文链接:http://gaobb.github.io/2016/02/24/Caffe 使用总结/